package com.jiyun.springboot_user.dao;

import com.jiyun.springboot_user.entity.TbCount;
import com.jiyun.springboot_user.entity.User;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface UserDao  {

    void add(User user);


   List<User> login(User user);


   @Select("SELECT COUNT(*) FROM tb_USER WHERE create_time >= CURDATE() AND create_time < DATE_SUB(CURDATE(),INTERVAL -1 DAY)")
    Integer selectTask();

    void addtbUser(TbCount tbCount);
}
